from django.test import TestCase
import os

# Create your tests here.


def main():
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', '序列化器Serializer的使用.settings')
    import django
    django.setup()
    from app02 import models
    author = models.Book.objects.filter(id=1).first().author
    print(author)
    print(author.all())


if __name__ == '__main__':
    main()
